package com.letfox.log.enums;

/**
 * 系统操作日志 状态、类型枚举
 */
public class OperationLogEnums {

	/** 操作日志类型 */
	public static final String OP_LOG_TYPE = "OP_LOG_TYPE";

	/** 操作日志状态 */
	public static final String OP_LOG_STATE = "OP_LOG_STATE";

	/** 操作日志级别 */
	public static final String OP_LOG_LEVEL = "OP_LOG_LEVEL";

	/**
	 * 日志类型 */
	public enum OpType {
		OP_LOG_TYPE_BUSINESS("BUSINESS", "0"), 
		OP_LOG_TYPE_SYS("SYSTEM", "1");

		private String name;
		private String value;

		private OpType(String name, String value) {
			this.name = name;
			this.value = value;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getValue() {
			return value;
		}

		public void setValue(String index) {
			this.value = index;
		}
	}
	
	/**
	 * 日志状态 */
	public enum OpState {
		OP_LOG_STATE_NORMAL("正常", "0"), 
		OP_LOG_STATE_EXCEPTION("故障", "1"),
		OP_LOG_STATE_IGNORE("忽略","2");

		private String name;
		private String value;

		private OpState(String name, String value) {
			this.name = name;
			this.value = value;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getValue() {
			return value;
		}

		public void setValue(String index) {
			this.value = index;
		}
	}
	
	/**
	 * 日志级别 */
	public enum OpLevel {
		OP_LOG_LEVEL_TIP("提示", "0"), 
		OP_LOG_LEVEL_WAMING("警告", "1"),
		OP_LOG_LEVEL_SERIOUS("严重","2");

		private String name;
		private String value;

		private OpLevel(String name, String value) {
			this.name = name;
			this.value = value;
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getValue() {
			return value;
		}

		public void setValue(String index) {
			this.value = index;
		}
	}
}
